<template>
  <div class="common-body-wrapper flex-box-wrapper">
    <!-- <div class="search-wrapper">
      <el-form :inline="true" :model="searchInfo" class="search-form">
        <el-form-item class="form-group" label="所属区域">
          <el-cascader v-model="searchInfo.area" :options="areaOptions" @change="handleAreaChange" change-on-select :props="areaProps"></el-cascader>
        </el-form-item>
        <el-form-item class="form-group" label="运营商">
          <el-select v-model="searchInfo.carrier" filterable placeholder="请选择运营商">
            <el-option v-for="(item, index) in carrierArr" :key="index" :label="item.name" :value="item.id"></el-option>
          </el-select>
        </el-form-item>
      </el-form>
      <div class="form-group search-group">
        <a class="ake_btn ake_btn_blue search-btn" @click.prevent="confirmSearch">
          <i class="el-icon-search"></i>
        </a>
      </div>
    </div> -->

    <div class="charts-body">
      <div class="wraning" v-if="!isHasChart">
        <i class="el-icon-warning"></i>图表数据为空，请选择搜索条件</div>
      <div id="charts-box" class="charts-box">

      </div>
    </div>
  </div>
</template>

<script>
// import common from '@mixins/common.js'

//modal
// import invokeModal from '@mixins/modal/invokeModal.js'

import trader from "./js/trader.js";
export default {
  mixins: [trader],
  data() {
    return {};
  }
};
</script>

<style lang="less">
@import '../../assets/less/base/variables.less';
.common-body-wrapper {
  display: flex;
  flex-direction: column;
  &.flex-box-wrapper {
    height: calc(~"100% - 50px");
  }
  .search-wrapper {
    padding-top: 8px;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
  }
  .search-form {
    display: flex;
    padding: 8px 16px 0px;
    .form-group {
      display: flex;
      align-items: center;
      height: 30px;
      line-height: 30px;
      margin-bottom: 8px;
      .el-form-item__label {
        color: #333;
        padding-left: 12px;
        padding-right: 12px;
        background-color: @greyF8;
        font-size: 14px;
        border-radius: 4px 0px 0px 4px;
        border: 1px solid @greydd;
        border-right: 0px;
      }
      .el-form-item__content {
        border-radius: 0px 4px 4px 0px;
        border: 1px solid @greydd;
        line-height: @searchH;
        .el-input__inner {
          border: 0;
          box-shadow: none;
          background-color: #fff;
          height: @searchH;
          line-height: @searchH;
        }
      }
      .el-cascader__label {
        line-height: 30px;
      }
    }
    .search-btn .el-icon-search {
      font-size: 20px;
      line-height: 1.6;
    }
  }
  .charts-body {
    flex: 1;
    padding-top: 16px;
    position: relative;
    .wraning {
      position: absolute;
      top: 40%;
      right: 0;
      transform: translateX(-70%);
      padding: 10px 20px;
      border-radius: 6px;
      background-color: #627b9f;
      font-size: 30px;
      color: #f3aa16;
      i {
        margin-right: 20px;
        color: #f3aa16;
      }
    }
    .charts-box {
      width: 100%;
      height: 100%;
    }
  }
}

.el-cascader-menus .el-cascader-menu {
  height: auto;
}
.el-cascader {
  line-height: normal;
}
.el-form-item__label{
  height: 32px;
  line-height: 32px;
}
</style>
